package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.DegreeCategory;
import com.iengoo.inductionms.service.DegreeCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * Author:huermao
 * 学位类别表
 **/
@RestController
@RequestMapping("/degree_category")
public class DegreeCategoryController {
    @Autowired
    private DegreeCategoryService degreeCategoryService;
    //获取所以学位
    @GetMapping
    public List<DegreeCategory> getDegreeCategory() {
        List<DegreeCategory> degreeCategoryList = degreeCategoryService.queryAllDegreeCategory();
        return degreeCategoryList;
    }
}
